package com.example.housesrv.mapper;

import com.example.housesrv.model.House;
import com.example.housesrv.model.HouseUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author ：Anitaxiaofeng
 * @description：
 * @create 2018-09-17
 **/
@Mapper
public interface HouseMapper {

    int insert(House house);

    HouseUser selectHouseUser(@Param("userId")long userID, @Param("id") long id, @Param("type") int type);

    int insertHouseUser(HouseUser houseUser);

    int downHouse(Long id);

    int deleteHouseUser(@Param("id")Long id, @Param("userId") Long userId, @Param("type") Integer type);
}
